package com.lizhaoshan.dao;

import com.lizhaoshan.pojo.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: reggie
 * @description: 菜品口味数据库接口
 * @author: lamour
 * @create: 2022-05-13 20:42
 **/

@Mapper
public interface DishFlavorDao {

    int insertBatch(@Param("flavorsList") List<DishFlavor> flavorsList);

    int deleteByDishId(@Param("dishId") String dishId);

    int countFlavorsByDishId(@Param("dishId") String dishId);

    int deleteByDishIds(@Param("idsList") List<String> idsList);

    List<DishFlavor> selectByDishId(String dishId);
}
